package com.liming.common.pojo.dto.order;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;

/**
 * 订单中的商品DTO
 *
 * @author liming
 * @date 2025/2/5
 */
@Data
@Schema(description = "订单中的商品DTO")
public class OrderItemDTO {

    @Schema(description = "商品ID", requiredMode = Schema.RequiredMode.REQUIRED)
    private Long productId;

    @Schema(description = "商品名称", requiredMode = Schema.RequiredMode.REQUIRED)
    private String productName;

    @Schema(description = "商品数量", requiredMode = Schema.RequiredMode.REQUIRED)
    private Integer quantity;

    @Schema(description = "商品真实单价（券后价格）", requiredMode = Schema.RequiredMode.REQUIRED)
    private BigDecimal realPrice;

    @Schema(description = "商品单价", requiredMode = Schema.RequiredMode.REQUIRED)
    private BigDecimal price;
}
